Skip to main content
Version: 3.x.x

LoggerResponseEventData


import { LoggerResponseEventData } from "@hyper-fetch/core"

Description

Defined in managers/logger/logger.manager.types.ts:30

Preview

type LoggerResponseEventData<AdapterType> = {
details: ResponseDetailsType;
request: RequestInstance;
requestId: string;
response: ResponseReturnType<unknown, unknown, AdapterType>;
}

Structure

{
details: {
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
};
request: Request<any, any, any, any, any, any, BaseAdapterType<any, any, any, any, any>, any, any, any>;
requestId: string;
response: {
additionalData: T extends BaseAdapterType<any, any, any, infer A, any> ? A : never | null;
data: GenericDataType | null;
error: GenericErrorType | null;
isSuccess: boolean;
status: T extends BaseAdapterType<any, any, infer S, any, any> ? S : never | null;
};
}